home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ETO Development Tools 4
/
ETO Development Tools 4.iso
/
Tools - Objects
/
E.T.O. #4 Installer
/
MacsBug Install
< prev
next >
Wrap
Text File
|
1991-05-23
|
2KB
|
64 lines
# M A C S B U G I N S T A L L A T I O N S C R I P T
#
# Copyright Apple Computer, Inc. 1990, 1991 - All rights reserved.
#
#
# This script is used to install either MacsBug 6.1 or 6.2.1 from the
# E.T.O. #4 distribution compact disk into a folder called "MacsBug Folder"
# on the destination hard disk.
#
# Options: None
#
# This script makes use of the following Shell variables:
#
# {CDVolume} - the name of the CD Distribution volume
#
# {SystemFolder} - the path to the folder containing the currently active System
#
# {DestVolume} - the name of the volume from which the Installer was launched
#
# {MacsBugOption} - a flag used to indicate which version of MacsBug to install
If "{MacsBugOption}" == "1" ### install MacsBug 6.1
set Source "{CDVolume}Tools - Objects:MacsBug:MacsBug 6.1:"
Else If "{MacsBugOption}" == "2" ### install MacsBug 6.2.1
set Source "{CDVolume}Tools - Objects:MacsBug:MacsBug 6.2.1:"
Else
Exit 1
End
### First, copy Macsbug into the System Folder
if "`Exists -f "{SystemFolder}MacsBug"`"
if "`Exists -f "{SystemFolder}MacsBug.Old"`"
Delete -y "{SystemFolder}MacsBug.Old"
End
Rename "{SystemFolder}MacsBug" "{SystemFolder}MacsBug.Old"
End
Duplicate -y "{Source}MacsBug" "{SystemFolder}MacsBug"
### Now, copy the rest of the stuff
If "`Exists -f "{SystemFolder}debugger prefs"`"
Derez -s mxbi -s mxbc -s dcmd "{Source}debugger prefs" > "{SystemFolder}debugPrefTemp"
Rez -a "{SystemFolder}debugPrefTemp" -o "{SystemFolder}debugger prefs"
Derez -only dcmd "{Source}debugger prefs" > "{SystemFolder}debugPrefTemp"
Rez "{SystemFolder}debugPrefTemp" -t "rsrc" -c "RSED" -o "{SystemFolder}debugger prefs dcmds"
delete "{SystemFolder}debugPrefTemp"
else
duplicate -y "{Source}debugger prefs" "{SystemFolder}debugger prefs"
End
If "`Exists -d "{DestVolume}MacsBug Folder"`"
if "`Exists -d "{DestVolume}MacsBug Folder.OLD"`"
Delete -y "{DestVolume}MacsBug Folder.OLD"
End
Rename "{DestVolume}MacsBug Folder" "{DestVolume}MacsBug Folder.OLD"
End
Duplicate -y "{Source}" "{DestVolume}MacsBug Folder:"